package net.wing.demo.util;

/**
 * @Author beifengtz
 * @Date Created in 10:28 2018/8/10
 * @Description:
 */
public class StrUtil {
    public static boolean filterSqlStr(String str){
        String sqlStr = "*,/,#,-,&,$,'";
        String[] sqlList = sqlStr.split(",");
        String[] strList = str.split("");
        for(String tempStr : strList){
            for(String tempSql : sqlList){
                if(tempSql.equals(tempStr)){
                    return false;
                }
            }
        }
        return true;
    }
}
